<template>
  <comment-card :title="'累计销售额'" :value="'￥5,201,314'">
    <template #default>
      <div class="compare-wrapper">
        <div class="compare">
          <span>日同比</span>
          <span class="emphasis">7.33%</span>
          <div class="increase"></div>
        </div>
        <div class="compare">
          <span>月同比</span>
          <span class="emphasis">7.33%</span>
          <div class="decrease"></div>
        </div>
      </div>
    </template>
    <template #footer>
      <span>昨日销售额</span>
      <span class="emphasis">￥ 999,999</span>
    </template>
  </comment-card>
</template>

<script>
import commentCardMixin from './mixins/commentCardMixin'

export default {
  name: 'TotalSales',
  mixins: [commentCardMixin]
}
</script>

<style lang="scss" scoped>
.compare-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;

  .compare {
    font-size: 12px;
    margin-top: 3px;
    display: flex;
    align-items: center;
  }

}

</style>
